<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link type="text/css" rel="stylesheet" href="/css/style.css" />
</head>
<body>
    <div class="transfer-box">
        <div class="title">添加记录</div>
        <form id="form1" action="/doadd">
            <div>
                区域: <select name="districtId">
                <c:forEach items="${districtlist}" var="t">
                    <option value="${t.id}"
                    >${t.name}</option>

                </c:forEach>


                </select>
            </div>
            <div>
                检测日期: <input type="text" name="monitorTime">
            </div>
            <div>
                PH10: <input type="text" name="pm10">
            </div>
            <div>
                PH25: <input type="text" name="pm25">
            </div>
            <div>
                监测站: <input type="text" name="monitoringStation">
            </div>
            <div>
                <input type="submit" value="保存">
                <input type="reset" value="重置">
                <input type="button" value="返回">
            </div>
        </form>
    </div>
</body>
<script src="/js/jquery-1.8.3.js"></script>
<script>


    if ("${msg}"){
        alert("${msg}");
    }
    <c:remove var="msg" scope="session"></c:remove>

    $(":button").bind("click",function(){

        location="/query";
    })

</script>
</html>
